#include "Blocks/TallGrassBlock.h"

namespace PocketSurvival
{
    void TallGrassBlock::getDropValues(int32_t oldValue, int32_t newValue, int32_t toolLevel, std::vector<BlockDropValue> &dropValues)
    {
        int32_t data = Terrain::ExtractData(oldValue);
        if(GetIsSmall(data) == false)
        {
            dropValues.push_back(BlockDropValue
            { 
                Terrain::MakeBlockValue(19, 0, data), 
                1
            });
        }
    }

    int32_t TallGrassBlock::getIndex()
    {
        return Index();
    }
    const std::string &TallGrassBlock::getBlockName()
    {
        static std::string blockName = "TallGrassBlock";
        return blockName;
    }
} // namespace PocketSurvival
